package iosr11.data;

import java.util.Date;
import java.util.List;

public class Event extends Entity{
	private Date startDate;
	private Date endDate;
	private String place;
	private EventSeries series;
	private boolean deadline;
	private String description;
	private List<Attendence> attendences;
	private List<Note> notes;
	
	public Event(){
		
	}
	
	public Event(String id, Date startDate, Date endDate, String place, EventSeries series,
			boolean deadline, String description){
		super(id);
		this.startDate=startDate;
		this.endDate=endDate;
		this.place=place;
		this.series=series;
		this.deadline=deadline;
		this.description=description;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public EventSeries getSeries() {
		return series;
	}

	public void setSeries(EventSeries series) {
		this.series = series;
	}

	public boolean isDeadline() {
		return deadline;
	}

	public void setDeadline(boolean deadline) {
		this.deadline = deadline;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<Attendence> getAttendences() {
		return attendences;
	}

	public void setAttendences(List<Attendence> attendences) {
		this.attendences = attendences;
	}

	public List<Note> getNotes() {
		return notes;
	}

	public void setNotes(List<Note> notes) {
		this.notes = notes;
	}
	
	public String toString(){
		StringBuffer buf = new StringBuffer();
		buf.append("dedline "+this.deadline+"\n");
		buf.append("description: "+this.description+"\n");
		buf.append(this.place+"\n");
		buf.append(this.startDate+"\n");
		buf.append(this.endDate+"\n");
		return buf.toString();
	}
}
